fix: implicit hydration will not abort synchronization
authorMatthieu Gallien <matthieu.gallien@nextcloud.com>
Wed, 9 Jul 2025 17:11:43 +0000 (19:11 +0200)
committerRello <Rello@users.noreply.github.com>
Fri, 25 Jul 2025 08:02:48 +0000 (10:02 +0200)
should avoid constant sync/abort loop for people having many files

Signed-off-by: Matthieu Gallien <matthieu.gallien@nextcloud.com>
src/gui/folder.cpp

index 41772fa7042ed28ab65d613d0f26d055f48f5b52..b1c94025b28a92b706027f392a7c9a6b4b1938ff 100644 (file)
@@ -1598,19 +1598,19 @@ void Folder::slotWatcherUnreliable(const QString &message)
 
 void Folder::slotHydrationStarts()
 {
-    // Abort any running full sync run and reschedule
-    if (_engine->isSyncRunning()) {
-        setSilenceErrorsUntilNextSync(true);
-        slotTerminateSync();
-        scheduleThisFolderSoon();
-        // TODO: This sets the sync state to AbortRequested on done, we don't want that
-    }
-
-    // Let everyone know we're syncing
-    _syncResult.reset();
-    _syncResult.setStatus(SyncResult::SyncRunning);
-    emit syncStarted();
-    emit syncStateChange();
+    // // Abort any running full sync run and reschedule
+    // if (_engine->isSyncRunning()) {
+    //     setSilenceErrorsUntilNextSync(true);
+    //     slotTerminateSync();
+    //     scheduleThisFolderSoon();
+    //     // TODO: This sets the sync state to AbortRequested on done, we don't want that
+    // }
+
+    // // Let everyone know we're syncing
+    // _syncResult.reset();
+    // _syncResult.setStatus(SyncResult::SyncRunning);
+    // emit syncStarted();
+    // emit syncStateChange();
 }
 
 void Folder::slotHydrationDone()